﻿using Camc.Quality.RecordTable.FormBase;
using Camc.Quality.RecordTable.FormClass;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Camc.Quality.RecordTable.FormEntity
{
  public  class 密封插头压接多媒体记录表 : TableBase
    {

        public 密封插头压接多媒体记录表(int serialNum, Guid workStepEntityId, Guid processesEntityId, int sort, string fisrtDrawingNum,string parentProductNum)
        {
            SerialNum = serialNum;
            WorkStepEntityId = workStepEntityId;
            ProcessesEntityId = processesEntityId;
            Sort = sort;
            FisrtDrawingNum = fisrtDrawingNum;
            ParentProductNum = parentProductNum;
        }

        public override string FormName { get; protected set; } = "密封插头压接多媒体记录表";

        #region  A2_参数代号
        public override string ParentProductNum_DisplayName { get; protected set; } = "参数代号";
        public override bool ParentProductNum_Show { get; protected set; } = true;
        public override int ParentProductNum_Property { get; protected set; } = 1;
        #endregion

        #region A4_传感器代号
        public override string FisrtDrawingNum_DisplayName { get; protected set; } = "传感器代号";
        public override bool FisrtDrawingNum_Show { get; protected set; } = true;
        public override int FisrtDrawingNum_Property { get; protected set; } = 1;
        #endregion
        /// <summary>
        /// 记录要求
        /// </summary>
        /// <param name="entity"></param>
        /// <param name="recordLocation"></param>
        /// <param name="recordMainopoint"></param>
        /// <param name="remarks"></param>
        /// <returns></returns>
        public RecordRequirementsEntity SetRecordRequirements(RecordRequirementsEntity entity, string recordLocation, string recordMainopoint, string remarks)
        {
            entity.SetRecordLocation(recordLocation, "箱内低温密封插头压接点", false, true, 0);
            entity.SetRecordMainopoint(recordMainopoint, "输出接口点号", false, true, 0);
            entity.SetRemarks(remarks, "备注", false, true, 0);
            return entity;

        }
        /// <summary>
        /// 多媒体
        /// </summary>
        /// <param name="measuredValues"></param>
        public MultiMediaEntity SetMultiMedia(MultiMediaEntity entity, string photoNo)
        {
            entity.SetMultiMedia(photoNo, "插接照片", true, true, 0);
            return entity;
        }
        /// <summary>
        /// 四检
        /// </summary>
        public InspectionSignatureEntity SetInspectionSignature(InspectionSignatureEntity entity)
        {
            entity.InspectionSignatureName = "四检";
            entity.SetFirstOperator(null, "操作者", true, true, 0, null, "操作者操作时间", true, true, 0);
            entity.SetSecondOperator(null, "互检者", true, true, 0, null, "互检者操作时间", true, true, 0);
            entity.SetThirdOperator(null, "检验员", true, true, 0, null, "检验员操作时间", true, true, 0);
            entity.SetFourthOperator(null, "确认人", true, true, 0, null, "确认人操作时间", true, true, 0);
            return entity;
        }
    }
}
